package com.tengju.user.domain.model.sms;

import com.tengju.user.domain.model.login.UserType;

/**
 * @author wuziyang
 */
public interface SmsVerifyCodeRepository {

    Long remainLimitTime(UserType userType,OperationType operationType,String areaCode,String mobile);

    boolean checkLimitTime(UserType userType,OperationType operationType,String areaCode,String mobile,long expireTime);

    boolean saveSmsVerifyCode(UserType userType, OperationType operationType, String areaCode, String mobile, String code, long expireTime);

    boolean delSmsVerifyCode(UserType userType, OperationType operationType, String areaCode, String mobile);

    String querySmsVerifyCode(UserType userType, OperationType operationType, String areaCode, String mobile);

    boolean savePwdChangeToken(UserType userType,String areaCode, String mobile,String value,long expireTime);

    String getPwdChangeToken(UserType userType, String areaCode, String mobile);


}
